package com.simple.car.loader.server.annotation;

import com.simple.car.loader.server.parser.Parser;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@Documented
public @interface RequestParam {

    String value();

    boolean necessary() default true;

    Class<Parser> type() default Parser.class;
}
